<%@ page language="java"
	import="java.util.*,cn.edu.scau.cmi.tangqingning.model.Student"
	pageEncoding="utf-8"%>
<%@ page import="cn.edu.scau.cmi.tangqingning.dao.StudentDao"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>更新学生信息</title>
<script type="text/javascript" src="js/stupdate.js"></script>
<link href="${pageContext.request.contextPath}/mycss/select.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath}/mycss/button.css"
	rel="stylesheet">
<script type="text/javascript">
	$().ready(function() {
		// 在键盘按下并释放及提交后验证提交表单
		$("#signupForm").validate({
			rules : {
				stId : "required",
				stName : "required",
				stAge : "required",
				stTel : "required",
				stDept : "required",
				stAddress : "required",
			},
			messages : {
				stId : "请输入学号",
				stName : "请输入姓名",
				stAge : "请输入年龄",
				stTel : "请输入电话号码",
				stDept : "请输入系别",
				stAddress : "请输入地址",			
			}
		});
	});
</script>
<style type="text/css">
.error {
	color: red;
}

span {
	color: red;
}

.form-signin .form-signin-heading, .form-signin .checkbox {
	margin-bottom: 10px;
}

.form-signin input[type="text"], .form-signin input[type="password"] {
	width: 30%;
	font-size: 16px;
	height: auto;
	margin-bottom: 15px;
	padding: 7px 9px;
}

.form-signin {
	max-width: 550px;
	padding: 19px 29px 29px;
	margin: 0 auto;
	background-image: linear-gradient(to top, #fff1eb 0%, #ace0f9 100%);
	border: 1px solid #e5e5e5;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	-moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
</style>
</head>
<body>
	<form align="center" class="form-signin" action="stupdate"
		id="signupForm" method="post">
		<legend>个人信息表</legend>
		学号： <input type="text" name="stId" value="${student.stId }" id="stId"
			readonly="readonly" class="input"> <br> 姓名： <input
			type="text" name="stName" value="${student.stName }" class="input"
			id="stName"> <br> 性别： <label for="man"
			class="radio"> <span class="radio-bg"></span> <input
			type="radio" name="stSex" id="man" value="男" onblur="checkstSex()"
			${student.stSex eq '男'?'checked':'' }> 男 <span
			class="radio-on"></span> <!-- 选中则用一个白点覆盖 -->
		</label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label
			for="woman" class="radio"> <span class="radio-bg"></span> <input
			type="radio" name="stSex" id="woman" value="女" onblur="checkstSex()"
			${student.stSex eq '女'?'checked':'' }> 女 <span
			class="radio-on"></span>
		</label> <span id="stSex1"></span> <br> 年龄： <input class="input"
			id="stAge" type="text" name="stAge" value="${student.stAge }">
		<br> 电话： <input class="input" type="text" name="stTel"
			value="${student.stTel }" id="stTel"><br> 系别： <input
			class="input" type="text" name="stDept" id="stDept"
			value="${student.stDept }"> <br> 地址： <input
			class="input" type="text" name="stAddress" id="stAddress"
			value="${student.stAddress }"><br> 组别： <input
			class="input" type="text" name="stGroup" id="stGroup"
			value="${student.stGroup }"><br> <input type="submit"
			value="提交" class="button red">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<input type="button" class="button white"
			onclick="window.location.href='userMain.jsp'" value="返回">
	</form>
</body>
</html>
